cmd2shell : cmd2shell.o comm.o parser.o executor
	cc -o cmd2shell cmd2shell.o comm.o parser.o

executor : executor.o comm.o
	cc -o executor executor.o comm.o

cmd2shell.o : cmd2shell.c cmd2shell.h
	cc -c cmd2shell.c

parser.o : parser.c parser.h
	cc -c parser.c

executor.o : executor.c executor.h
	cc -c executor.c

comm.o : comm.c comm.h
	cc -c comm.c

clean :
	rm *.o
